package fr.inserm.um915.bdibd.model;

import java.util.Comparator;
import com.sleepycat.je.DatabaseEntry;

public class ChromPositionComparator implements Comparator<byte[]>
	{
	@Override
	public int compare(byte[] o1, byte[] o2)
		{
		ChromPosition.Binding b=new ChromPosition.Binding();
		ChromPosition s1= b.entryToObject(new DatabaseEntry(o1));
		ChromPosition s2= b.entryToObject(new DatabaseEntry(o2));
		return s1.compareTo(s2);
		}
	}
